package com.liwu.base.spring.test.aop.config;

import com.liwu.base.spring.test.aop.Audience;
import com.liwu.base.spring.test.aop.AudienceXml;
import com.liwu.base.spring.test.aop.NewTitroer;
import com.liwu.base.spring.test.aop.TrackCounter;
import com.liwu.base.spring.test.aop.TrackCounterXml;
import com.liwu.base.spring.test.aop.impl.OtherPermanceImpl;
import com.liwu.base.spring.test.aop.impl.PermanceImpl;
import com.liwu.base.spring.test.aop.inter.OtherPermance;
import com.liwu.base.spring.test.aop.inter.Performance;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;

/**
 * @author: liwu
 * @version: 1.0.0
 * @email: <a href="mailto:liwu@pingpongx.com">联系作者</a>
 * @date: 2018/2/3 - 下午5:51
 */
@Configuration
//@EnableAspectJAutoProxy
@ImportResource("classpath:/test_spring/spring-base.xml")
public class JavaConfig {

    @Bean
    public Audience audience(){

        return new Audience();

    }

    @Bean
    public AudienceXml audienceXml(){

        return new AudienceXml();

    }

    @Bean
    public TrackCounterXml trackCounterXml(){

        return new TrackCounterXml();

    }

    @Bean
    public TrackCounter trackCounter(){

        return new TrackCounter();

    }

    @Bean
    public NewTitroer newTitroer(){

        return new NewTitroer();
    }


    @Bean
    public OtherPermance otherPermance(){

        return new OtherPermanceImpl();

    }




}
